
#include "DeclareVariableTest.h"

void DeclareVariableTest::TestAnalyse(void ) {
	// Test de diverse déclaration de variable.
	DeclareVariable dv1;
	dv1.addCodeLobo("DECLARE i ;");
	dv1.analyser();
	CPPUNIT_ASSERT(dv1.toString() == "int i ;");

	DeclareVariable dv2;
	dv2.addCodeLobo("DECLARE test;");
	dv2.analyser();
	CPPUNIT_ASSERT(dv2.toString() == "int test ;");

}

